package com.lft.examsys.service;

import com.lft.examsys.entity.Type;
import com.lft.examsys.mapper.TypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：Qingchen
 * @date ：Created in 2022/3/31 23:37
 * @description：题目类型服务层
 * @modified By：
 * @version: $
 */
@Service
public class TypeService {

    @Autowired
    private TypeMapper typeMapper;

    public List<Type> getTypeNames() {
        return typeMapper.getAll();
    }
}
